<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
    	$name= C('name');
    	//echo C('sex').'<BR>';//C是读取配置文件的缩写
    	//echo C('URL_MODEL');//url模式
    	//U('模块/方法'，array('id'=>1),'xxx'
    	//echo U('Index/user',array('id'=>2,'html',false,'localhost'));
    	//show();
    	//$arr = array(1,2,3,4,5);
    	//dump($arr);
    	//$date = date('Y-m-d');
    	//$this->name=$name;
    	//$this->assign('name1',$name)->assign("sex","man")->assign("today",$date);
    	//测试记录
    	
    	$this->display('Index/test');
    //echo 'my name is leifeng';
	//$this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>hellow world！</p></div><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
    }
    
    public function user(){
    	echo 'id is:'.$_GET['id'].'<br/>';
    }
}